/**
 * ThirdPartyValidatorResult.java
 * author: yujiakui
 * 2017年8月29日
 * 上午10:24:43
 */
package com.ctim.service.integration.validator;

import java.util.Map;

import com.ctim.model.BaseModel;

/**
 * @author yujiakui
 *
 *         上午10:24:43
 *
 *         第三方校验的结果
 */
public class ThirdPartyValidatorResult extends BaseModel {

	/** serial id */
	private static final long serialVersionUID = -2361318888084811180L;

	/** 成功失败标记 */
	private boolean success;

	/** 错误码 */
	private String errorCode;

	/** 错误原因 */
	private String errorReason;

	/** 解析对象对应的内容 */
	private Object parserObj;

	/** 扩展信息 */
	private Map<String, Object> extInfoMap;

	public ThirdPartyValidatorResult() {
		success = true;// 默认没有错误
	}

	/**
	 * @return the success
	 */
	public boolean isSuccess() {
		return success;
	}

	/**
	 * @param success
	 *            the success to set
	 */
	public void setSuccess(boolean success) {
		this.success = success;
	}

	/**
	 * @return the errorCode
	 */
	public String getErrorCode() {
		return errorCode;
	}

	/**
	 * @param errorCode
	 *            the errorCode to set
	 */
	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	/**
	 * @return the errorReason
	 */
	public String getErrorReason() {
		return errorReason;
	}

	/**
	 * @param errorReason
	 *            the errorReason to set
	 */
	public void setErrorReason(String errorReason) {
		this.errorReason = errorReason;
	}

	/**
	 * @return the extInfoMap
	 */
	public Map<String, Object> getExtInfoMap() {
		return extInfoMap;
	}

	/**
	 * @param extInfoMap
	 *            the extInfoMap to set
	 */
	public void setExtInfoMap(Map<String, Object> extInfoMap) {
		this.extInfoMap = extInfoMap;
	}

	/**
	 * @return the parserObj
	 */
	public Object getParserObj() {
		return parserObj;
	}

	/**
	 * @param parserObj
	 *            the parserObj to set
	 */
	public void setParserObj(Object parserObj) {
		this.parserObj = parserObj;
	}
}
